﻿// PtjLua.c

#include <stdio.h>
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>

int luaopen_pb(lua_State* L);

int main() {
    printf("A test for converting proto to json.\n");
    lua_State* L = lua_open();
    luaL_openlibs(L);
    luaopen_pb(L);
    luaL_dofile(L, "src\\main.lua");
    lua_pcall(L, 0, LUA_MULTRET, 0);
    lua_close(L);
}
